From: Jim Blandy Date: Sat, 10 Apr 1993 08:30:27 +0000 (+0000) Subject: * configure.in: Don't set CC to "gcc -O" if the user specifies X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96544 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=8ba83d8852bce7813ae0c4237edd82f15014f0d0;p=emacs.git * configure.in: Don't set CC to "gcc -O" if the user specifies `--with-gcc'. Add -O to DEFS if GCC is set. --- diff --git a/configure1.in b/configure1.in index d9e02003f63..d02306cc8c9 100755 --- a/configure1.in +++ b/configure1.in @@ -781,14 +781,19 @@ compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1' #### Choose a compiler. DEFS=-g case ${with_gcc} in - "yes" ) CC="gcc -O99" GCC=1 ;; - "no" ) CC="cc" ;; + "yes" ) CC="gcc" GCC=1 ;; + "no" ) CC="cc" ;; * ) ] AC_PROG_CC [ esac +if [ "${GCC}" != "" ]; then + DEFS="${DEFS} -O" +fi + + #### Some other nice autoconf tests. ] AC_CONST